﻿using System;

namespace Alex.Framework.Domain.Transcation
{
    /// <summary>
    /// 事务处理接口
    /// </summary>
    public interface ITranscation : IDisposable
    {
        /// <summary>
        /// 事务状态
        /// </summary>
        TranscationState State { get; }        
        /// <summary>
        /// 提交事务
        /// </summary>
        void Commit();

        /// <summary>
        /// 回滚事务
        /// </summary>
        void Rollback();
    }
}
